package com.lbt.weixin.server.common;

/**
 * 微信公众号或者第三方平台应用配置信息，各属性值来自微信公众号开发配置或者微信第三方开发应用配置
 * 
 * @author Moyq5
 *
 */
public class WeixinAppConfig {
	private static WeixinAppConfig config = new WeixinAppConfig();
	private String appId;
	private String appSecret;
	private String token;
	private String encodingKey;

	private WeixinAppConfig() {
		CommonConfig config = CommonConfig.getInstance();
		appId = config.getWeixinAppId();
		appSecret = config.getWeixinAppSecret();
		token = config.getWeixinToken();
		encodingKey = config.getWeixinEncodingKey();

	}

	public static WeixinAppConfig getInstance() {
		return config;
	}

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAppSecret() {
		return appSecret;
	}

	public void setAppSecret(String appSecret) {
		this.appSecret = appSecret;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getEncodingKey() {
		return encodingKey;
	}

	public void setEncodingKey(String encodingKey) {
		this.encodingKey = encodingKey;
	}

}
